<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="p" uri="http://www.itcast.cn/tag"%>
<%@ page import="top.fleamarket.domain.User"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>校园二手交易平台</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/main.css" type="text/css" />
	<script type="text/javascript">
	//退出确认框
	function confirm_logout() {   
	    var msg = "您确定要退出登录吗？";   
	    if (confirm(msg)==true){   
	    return true;   
	    }else{   
	    return false;   
	    }   
	} 
	</script>
</head>
<body class="main">
	<p:user />
	<jsp:include page="head.jsp" />
	<div style="text-align:left; margin:5px 10px 5px 170px;float:left;width:1518.4px;">
		<a href="${pageContext.request.contextPath }/index.jsp">首页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="${pageContext.request.contextPath }/client/myAccount.jsp">我的帐户</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;用户信息修改
	</div>
	
	
	<div class="account1" style="width:220px;backgground:white;box-shadow:0 26px 26px rgb(0 0 0 / 50%);">
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath }/client/modifyuserinfo.jsp">用户信息修改</a>
		</div>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath}/findOrderByUser">订单查询</a>
		</div><%
		User user = (User) request.getSession().getAttribute("user");
 				if(null == user){}else{
 				%> 
 				<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
				<a href="${pageContext.request.contextPath }/client/add.jsp">发布商品</a> 
				</div>
				<%
				}
 				%>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:white;">
			<a href="${pageContext.request.contextPath}/logout" onclick="javascript:return confirm_logout()">用户退出</a>
		</div>
		</div>
	<div class="account2" style="width:1000px;height:500px;float:left;margin-top:0px;background:white;box-shadow:0 26px 26px rgb(0 0 0 / 50%);
							margin-bottom:50px;border-radius:20px;padding-top:50px">
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px">
			<span>邮箱：${user.email }</span>
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px">
			<span>名称：${user.username }</span>
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px">
			<span>修改密码：</span><input type="password" class="textinput" /><font color="#999999" size="3px">密码设置至少6位，请区分大小写</font>
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px">
			<span>重复密码：</span><input type="password" class="textinput" />
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px">
		<span>性别：</span>
			<input type="radio" name="radiobutton" value="radiobutton" ${user.gender=='男'?'checked':'' }/> 男
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="radio" name="radiobutton" value="radiobutton"  ${user.gender=='女'?'checked':'' }/> 女
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:340px;margin-right:100px">
			<span>联系方式：</span><input name="text2" type="text" value="${user.telephone}" class="textinput" />
		</div>
		<div style="font-size:20px;margin-bottom:50px;float:left;margin-left:460px;cursor:pointer;background:#ef5f66;padding:10px;border-radius:20px">
			<span><a href="${pageContext.request.contextPath }/client/success.jsp">确认</a></span>
		</div>
		
	</div>
	<jsp:include page="foot.jsp" />
</body>
</html>
